/*
* $Id: FieldValuesOperation.h 44 2010-02-26 11:58:39Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _ADD_FIELD_VALUES_OPERATION_H_
#define _ADD_FIELD_VALUES_OPERATION_H_

#include "../Operation.h"

class CFieldValuesOperation : public COperation
{
public:
	CFieldValuesOperation();
	virtual ~CFieldValuesOperation();
	struct content : public COperation::content{
		content();
		int s_nId;
		enum type{
			DEFAULT = 0,
			POINTS,
			FAMILIES,
			INSPECT
		}s_table;
		std::map<std::tstring, std::tstring> s_aUserFields;
		virtual void Clear();
	}m_content;
public:
	virtual void AddValue(IDatabase* pDatabase);
	virtual void UpdateValue(IDatabase* pDatabase);
};

#endif/*_ADD_FIELD_VALUES_OPERATION_H_*/